import server from '@/utils/axiosAPI'

export default {

    gitUser(datalist) {
        return server.get(`users`,datalist)
    },

    gitRole() {
        return server.get(`roles`)
    },

    roles(id,cid) {
        return server.put(`users/${id}/role`,cid)
    },

    redact(id,datalist) {
        return server.put(`users/${id}`,datalist)
    },

    changes(id,datalist) {
        return server.put(`users/${id}/state/${datalist}`)
    },

    addUsera(datalist) {
        return server.post(`users`,datalist)
    },

    remove(id) {
        return server.delete(`users/${id}`)
    },


}

